home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
sviluppo
/
svilupp2
/
muiclstr.lha
/
txt
/
MCCZoomProp.def
< prev
next >
Wrap
Text File
|
1995-12-19
|
3KB
|
82 lines
|##########|
|#MAGIC #|DNEIEIEB
|#PROJECT #|"Mui"
|#PATHS #|"StdProject"
|#FLAGS #|xx---x-xxxx---x-----------------
|#USERSW #|--------------------------------
|#USERMASK#|--------------------------------
|#SWITCHES#|x----xxxxx-xx---
|##########|
DEFINITION MODULE MCCZoomProp;
(*------------------------------------------
:Module. MCCZoomProp.mod
:Author. Henning Thielemann
:Address. Veilchenweg 34, 06118 Halle, Germany
:EMail. henning.thielemann@student.uni-halle.de
:Version. $VER: MCCZoomProp.mod 12.0 (05.96)
:Copyright. Henning Thielemann
:Language. Cluster
:Translator. Amiga Cluster V2.0
:Contents. Proportional Gadget with the ability to zoom via mouse
:Bugs. Sorry, whatever I tried, it was not possible to use the default images for knob and background
:Usage. <Angaben zur Anwendung>
:History. 3.1 [ht] Mar-1996 : initial version, used in NomenEstOmen
--------------------------------------------*)
FROM MuiO IMPORT MuiTags, CustomClassPtr, AreaObject, GroupObject;
FROM Intuition IMPORT IntuitionBase;
FROM System IMPORT Regs;
TYPE
ZoomPropTags = TAGS OF MuiTags
propDummy = $8CA70000;
propRealFirst : REAL;
propRealTotal : REAL;
propRealVisible : REAL;
propRealMove : REAL;
END;
TagItem = RECORD tag, data : LONGINT END;
CONST
aPropFirst = CAST (TagItem, MuiTags : propFirst : 0).tag;
aPropTotal = CAST (TagItem, MuiTags : propEntries : 0).tag;
aPropVisible = CAST (TagItem, MuiTags : propVisible : 0).tag;
aPropRealFirst = CAST (TagItem, ZoomPropTags : propRealFirst : 0).tag;
aPropRealTotal = CAST (TagItem, ZoomPropTags : propRealTotal : 0).tag;
aPropRealVisible = CAST (TagItem, ZoomPropTags : propRealVisible : 0).tag;
aPropRealMove = CAST (TagItem, ZoomPropTags : propRealMove : 0).tag;
(*
aPropRealFirst = LONGCARD($8CA70001);
aPropRealTotal = LONGCARD($8CA70002);
aPropRealVisible = LONGCARD($8CA70003);
aPropRealMove = LONGCARD($8CA70004);
*)
VAR
zoomPropMCC,
zoomScrollbarMCC : CustomClassPtr;
PROCEDURE MakeZoomPropObject (tags : LIST OF ZoomPropTags) : AreaObject;
PROCEDURE MakeZoomScrollbarObject (tags : LIST OF ZoomPropTags) : GroupObject;
LIBRARY IntuitionBase BY -648
PROCEDURE SetZPAttrs (object IN A0 : AreaObject;
tags IN A1 : LIST OF ZoomPropTags);
GROUP
TagGrp = ZoomPropTags, aPropFirst, aPropTotal, aPropVisible,
aPropRealMove, aPropRealFirst, aPropRealTotal, aPropRealVisible,
SetZPAttrs;
ClassGrp = MakeZoomPropObject, MakeZoomScrollbarObject,
zoomPropMCC, zoomScrollbarMCC;
All = TagGrp, ClassGrp;
END MCCZoomProp.